home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
mxutil
/
tspak17
/
newsnd.for
< prev
next >
Wrap
Text File
|
1994-08-18
|
2KB
|
45 lines
New Tandy .Snd File Format
--------------------------
This is the new .snd file format used on the 2500-series. From information
provided by John Ball (john.ball@two-t.com).
Like the old format, the new format header consists of a fixed part
followed by one or more sample descriptors. The fixed part is 114 bytes;
the sample descriptors are 46 bytes each. Samples are still 8-bit unsigned
PCM.
Fixed header:
offset size what
0 10 bytes ASCIIZ name of sound.
0Ah 34 bytes unknown
2Ch 2 bytes New .snd ID: 1Ah 80h.
2Eh word Number of samples in file.
30h word Sound (instrument) number.
32h 16 bytes unknown
42h word Compression code (0 = no compression, 1 =
music compression, 2 = speech compression).
44h 20 bytes unknown
58h word Sampling rate in Hz.
5Ah 24 bytes unknown
72h variable Sample descriptors begin.
Sample descriptors (number given by word at 2Eh above):
offset size what
0 dword Link to next sample descriptor (offset in file
of next sample descriptor record). 0 if last.
4 2 bytes unknown
6 byte Pitch of note (01h-3Fh), 01 = A1 in American
Standard Pitch; 0FFh if not set.
7 byte unknown (compare old .Snd format; value is 00
or FF, but seemingly unrelated to pitch setting)
8 2 bytes Range of note. First byte is lower limit,
second is higher limit. Values as for byte
at offset 6 above; FF FFh if not set.
0Ah dword Offset in file of start of sound data for
this sample.
0Eh dword Length of sample sound data in bytes.
12h dword Uncompressed length of sound data (number of
samples).
16h 24 bytes unknown